package com.lelouch.wetlandsystem.mongorepository.param;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 接受前端传来的保护主体的属性的实体
 *
 * @author lcy
 * @create 2018-09-14 09:47
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WetlandBasicEntityParam {

    //后台数据校验

    @NotBlank(message = "保护主体名称不可以为空")
    private String name;
    private String wlin_gis_mapserver;
    @NotBlank(message = "省份名称不可以为空")
    private String province;
    @NotBlank(message = "市名称不可以为空")
    private String city;
    private String district;

    @Max(value = 180, message = "经度不能大于180")
    @Min(value = -180, message = "经度不能小于-180")
    private Double wlin_longitude;
    @Max(value = 90, message = "纬度不能大于90")
    @Min(value = -90, message = "纬度不能小于-90")
    private Double wlin_latitude;
    @Max(value = 15, message = "缩放比例不能大于15")
    @Min(value = 0, message = "缩放比例不能小于0")
    private Integer wlin_scale;
    @NotBlank(message = "保护主体类型不可以为空")
    private String wlin_type;

}
